# Setup

1. You'll need a licensed copy of Stata installed, version 16 or higher.
2. You must install the Stata package `project- from code/ado_project. From within Stata, run:

```
net install project, replace from(code/ado_project)
```

# Running Stata Code

1. You can run a build of an entire Stata code pipeline by running `project figstabs, build`
	* The first time the build runs, it may take minutes or hours to generate everything. On subsequent runs, it will only update files whose code or dependencies have changed.
2. You can also run individual do-files interactively.

# List of reproducible tables, figures, and scalars

## Tables

All tables in the paper (including the Online Appendix) are reproducible except the following, which use confidential, disaggregated data:
- **Appendix Table 2**: Distributions of Sample Sizes
- **Appendix Table 3**: Industry Employment Shares Across Datasets
- **Appendix Table 4**: Hourly Wage Rates By Industry Across Datasets
- **Appendix Table 7**: Association Between Changes in Consumer Spending and Workplace Rent by ZIP Code
- **Appendix Table 8**: Demographic Characteristics of Zearn Users
- **Appendix Table 12**: Causal Effect of the Paycheck Protection Program on Employment

## Figures

All figures in the paper (including the Online Appendix) are reproducible except the following, which use confidential, disaggregated data:
- **Appendix Figure 1**: Correction of Structural Breaks in Spending, Small Business Revenue, and Employment
- **Appendix Figure 2**: Industry Shares of Consumer Spending and Business Revenues Across Datasets
- **Appendix Figure 6B**: Consumer Spending Benchmarks, Affinity vs. MARTS and CoinOut: B. Cash Spending in CoinOut Transactions Data vs. Card Spending
- **Appendix Figure 9B**: National Trends in Small Business Revenue and Job Postings for Low-Education Workers: B. Job Postings for Low-Education Workers, January 2020 to December 2021
- **Appendix Figure 12A**: Changes in Small Business Revenues vs. Local Characteristics: A. Share of the Population Below the Poverty Line, by County
- **Appendix Figure 14A**: Changes in Employment as of July 2020 in Paychex-Intuit Data vs. CES and QCEW: A. Change in Employment Rates by Industry (2-Digit NAICS): Paychex-Intuit vs. CES
- **Appendix Figure 28**: Effects of the Paycheck Protection Program on Employment

In addition, for **Figure 9B** and **Figure 9C**, the data for the scatter points are publicly available but the underlying ZIP-level spending data are not publicly available due to the constraints of the data use agreement.

## Scalars 
All scalars in the paper (including the Online Appendix) regarding our summary statistics and results are reproducible except the following, which use confidential, disaggregated data:
- Scalars regarding the ZIP code-level gradient between the change in small business revenues and rents conditional on SafeGraph-based population estimates in footnote 19 of the paper.
- Scalars regarding the correlation between changes in private non-farm employment in Paychex-Intuit vs. CES in section III.C of the paper.
- Scalars regarding the correlation between week-on-week changes in consumer spending in Affinity vs. CoinOut in Appendix B.3 of the paper.
- Scalars regarding the share of workers with weekly, bi-weekly, semi-monthly, or monthly pay frequencies in the Paychex data, in Appendix E.1 of the paper.
- Scalars regarding the wage distribution in Earnin vs. CPS, in Appendix E.1 of the paper.
- Scalars regarding the match rate between Earnin and ReferenceUSA in Appendix E.1 of the paper.
- Scalars regarding the share of workers with pay periods greater than 3 weeks in the Earnin data, in Appendix E.3 of the paper.
- Scalars regarding the PPP estimates in Section IV.B and Appendix L.2 of the paper.
